<template>
	<div>
		<div id="top" class="clearfix">
			<h1><a href="#">美肌工坊</a></h1>
			<ul>
				<li v-for='(item, index) in links' :key="index">
					<router-link  exact :to="item.hrefs" active-class="active"> {{item.name}}</router-link>
				</li>
			</ul>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'Top',
		data() {
			return {
				links: [{
						name: '首页',
						hrefs: '/home'
					},
					{
						name: '加盟合作',
						hrefs: '/'
					},
					{
						name: '全国门店',
						hrefs: 'store'
					},
					{
						name: '联系我们',
						hrefs: 'contact'
					}
				]
			}
		},
	}
</script>

<style lang='scss' >
	#top {
		padding-top: 77px;
		width: 100%;
		overflow: hidden;
		/*height: 87px;*/
		h1 {
			margin-left: 111px;
			display: block;
			float: left;
			background: url(../../../../static/imgs/login/logo@2x.png);
			
			a {
				display: block;
				width: 393px;
				height: 96px;
				line-height: 48px;

				text-indent: -100000em;
			}
		}
		ul {
			float: right;
			padding-top: 16px;
			li {
				float: left;
				width: 153px;
				height: 47px;
				line-height: 47px;
				text-align: center;
				border-radius: 30px;
				margin-right: 83px;
				overflow: hidden;
			a{
					display: block;
					width: 153px;
					height: 47px;
					color: #F5855F;
					
				}
				.active {
					background-color:#F5855F;
					color:#fff;
				}
			}
		}
	}
</style>